using UnityEditor;

namespace Editor.Game
{
    public partial class GameEditor
    {
        public class Controller
        {
            private readonly string configPath = "";
            private readonly GameCollection collection = new();

            public int Count { get; private set; }
            public TblGame TblGame { get; private set; }

            public void Load()
            {
                // var gameTbl = AssetDatabase
                var gameTblPath = $"Assets/Proj/Games/s_common/Res/Conf/Table/TblGame.asset";
                TblGame = AssetDatabase.LoadAssetAtPath<TblGame>(gameTblPath);
                // log.err(gameTbl.Count);
                Count = TblGame.Count;
                collection.Load();
            }
        }
    }
}